package com.mercury.emqx.properties;
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//


import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;


/**
 * @author mercury
 */
@Data
@ConfigurationProperties("spring.mqtt")
@NoArgsConstructor
public class MqttProperties {

    private Boolean enabled;
    /**
     * 客户端名称
     */
    @Value("${spring.application.name}")
    private String username;
    /**
     * 客户端id
     */
    private String clientId;
    private String password;
    private String[] hosts;
    private String topic;
    /**
     * http请求地址
     */
    private String mqttHttpUrl;
    private Integer completionTimeout = 3000;
    private Integer connectTimeout = 10;
    private Integer qos = 2;
    /**
     * appId
     */
    private String appId;
    /**
     * app秘钥
     */
    private String appSecret;


}
